package com.niiwoo.civet.scheduler.trigger;

import com.alibaba.dubbo.config.annotation.Reference;
import com.niiwoo.civet.trade.service.loan.SpeedLoanDubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 天称数据回流相关定时器
 * @author xueyuke
 * @date 2017-11-30
 */
public class TianChengDataBackFlowJobTrigger {
    private static final Logger logger= LoggerFactory.getLogger(TianChengDataBackFlowJobTrigger.class);

    @Reference(version = "1.0.0")
    private SpeedLoanDubboService speedLoanDubboService;

    /**
     * 通讯录回流
     */
    @Scheduled(cron = "${loan.push-project}")
    public void addressListScan(){
        speedLoanDubboService.pushProjectScan();
    }
}
